package edu.whu.puppygo.entity;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author guanruwang
 * @date 2023/12/1$
 */
public enum FragmentStatueEnum implements Comparable<FragmentStatueEnum> {

    @ApiModelProperty(value = "数据库插入完成")
    DB_INSERT_FINISHED(0),
    @ApiModelProperty(value = "VQA完成")
    VQA_FINISHED(1),
    @ApiModelProperty(value = "embedding完成")
    EMBEDDING_FINISHED(2),
    @ApiModelProperty(value = "GPT完成,即该次问答完成")
    GPT_FINISHED(3),
    @ApiModelProperty(value = "数据库插入失败")
    DB_INSERT_FAILED(4),
    @ApiModelProperty(value = "VQA超时")
    VQA_TIMEOUT(5),
    @ApiModelProperty(value = "embedding超时")
    EMBEDDING_TIMEOUT(6),
    @ApiModelProperty(value = "GPT超时")
    GPT_TIMEOUT(7);

    private int value;

    FragmentStatueEnum(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

}
